home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12674 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.luc.edu!user
  2. From: VArase@varase.it.luc.edu (Verne Arase)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Is this a C BUG??? (A string issue)
  5. Date: Mon, 01 Apr 1996 23:08:31 -0600
  6. Organization: LUMC
  7. Message-ID: <AD86126F966859743@mcdiala13.it.luc.edu>
  8. References: <4jknpf$9k3@abel.cc.sunysb.edu> <4jmjgfINN8pr@keats.ugrad.cs.ubc.ca> <AD84A72A96681716E4@mcdiala03.it.luc.edu> <4jp9s4INNpp2@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: 147.126.240.113
  10.  
  11. In article <4jp9s4INNpp2@keats.ugrad.cs.ubc.ca>,
  12. c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
  13.  
  14.  >What is being done is the conversion of non-fixed-length records to
  15.  >fixed-length records. I fail to see how using low-level POSIX functions
  16.  >would help, since you would have to pretty much duplicate what the
  17.  >standard IO library does for you anyway. In fact, you could set a large
  18.  >buffer size on the standard IO output stream which could cause it to
  19.  >output a whole bunch of 194-character records at once. A naive
  20.  >implementation of the program using write() would do the system call
  21.  >for each record.
  22.  
  23. Huh?
  24.  
  25. The standard I/O f<...> functions are fine for formatted I/O, and I/O where
  26. compatible stream functions are desired, but aren't that great for fixed
  27. length record I/O.
  28.  
  29. read/write allow you to slam in or out a specified number of bytes
  30. into/from a buffer; how is that restricting I/O to a single record at a
  31. crack?
  32.  
  33. ---
  34. The above are my own opinions, and not those of my employer.
  35.